/**
 * Created by pankaj on 25/10/14.
 */
define(['jquery'], function($){
    return {
         validateEmail : function(email){
             var emailRegEx = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
            return email.length != 0 && emailRegEx.test(email);
        },
        empty : function(txt){
            return txt === undefined || txt === null || txt.length == 0;
        },
        date : function(date){
            return  (/dd\/dd\/ddd/gi).test(date);
        }
    };
});/**
 * Created by pankaj on 25/10/14.
 */
